package ejb.facades.forum;

import entities.forum.Post;
import entities.forum.Topic;
import java.util.List;
import javax.ejb.Local;

/**
 * Trabalho PD - 2014/2015
 *
 * @author a21210380 a21210392
 */
@Local
public interface PostFacadeLocal {

    void create(Post post);

    void edit(Post post);

    void remove(Post post);

    Post find(Object id);

    List<Post> findAll();

    List<Post> findRange(int[] range);

    List<Post> getPostsFromTopic(Topic topic);

    int count();

}
